<template>
  <div id="due-today-container">
    <div class="due-card">
      <div class="card-content">
        <div class="card-date">
          <Icon iconName="icon-youji" size="small"></Icon>
          <span>一月12日</span>
        </div>
        <span>简述一下你对 HTML 语义化的理解 ？</span>
      </div>
      <div class="card-control">
        <Icon iconName="icon-duigouxiao"></Icon>
        <Icon iconName="icon-jinrujiantouxiao"></Icon>
        <Icon iconName="icon-guanbixiao"></Icon>
      </div>
    </div>
  </div>
</template>

<script>
import Icon from '../../components/Icon/Icon.vue';

export default {
  components: {
    Icon,
  },
};
</script>

<style lang="scss" scoped>
#due-today-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  .due-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 47%;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 45px;
    margin-right: 45px;
    background: $vue-color-third;
    box-shadow: $vue-box-shadow-button-card;
    &:nth-of-type(2n) {
      margin-right: 0;
    }
    .card-content {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 255px;
      background: #fdf9f2;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      span {
        color: $vue-color-secondary;
        font-size: 18px;
        font-weight: bold;
      }
      .card-date {
        position: absolute;
        top: 15px;
        right: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.5);
        span {
          font-weight: normal;
          font-size: 16px;
        }
      }
    }
    .card-control {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 15%;
      background: #ffedce;
      span {
        margin: 0 10px;
      }

      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }
  }
}
</style>
